package org.lewis.core.tools;

public class ImageTool extends AbstractResTool {

	public ImageTool() {
		init("images.hosts");
	}

	public  String getImageUrl(String name, int width, int height) {
		return (new StringBuilder().append(getHost(name))
				.append("/images/thumbnail-").append(width).append("-")
				.append(height).append("/")).append(name).toString();
	}

	public  String getImageUrl(String name) {
		return (new StringBuilder().append(getHost(name)).append("/images/")
				.append(name)).toString();
	}


}
